'use strict';

const Controller = require('egg').Controller;

class AdetailController extends Controller {
  async index() {
    const { ctx } = this; 
    var {id} = ctx.query;
    console.log(id)
    // ctx.body = 'adetail';
    var data = await ctx.service.article.findDetail(id)
    await ctx.render('detail.html', { res:data[0] })
  }
}

module.exports = AdetailController;
